﻿using System.Windows.Forms;
using HighDiveEngine.Model;

namespace HighDiveAdmin.GUI
{
    public class DiveTreeNode : TreeNode
    {
        public Dive Dive { get; set; }

        public DiveTreeNode(Dive dive) : base(dive.ToString().Substring(dive.Diver.FirstName.Length + dive.Diver.LastName.Length + dive.Diver.StartNumber.ToString().Length + 17))
        {
            Dive = dive;
        }
    }
}
